<template>
  <div class="page-container">
    <el-tabs v-model="activeName">
      <el-tab-pane label="景区门票" name="0">
        <Product v-if="activeName=== '0'" key="scenic" :type="0" />
      </el-tab-pane>
      <el-tab-pane label="项目门票" name="1">
        <Product v-if="activeName=== '1'" key="project" :type="1" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>

import Product from './Product.vue'
export default {
  name: 'CreatProduct',
  components: {
    Product
  },
  data() {
    return {
      activeName: '0'
    }
  },

  created() {
    this.activeName = this.$route.query.type
  },

  methods: {}
}
</script>

<style lang="scss" scoped>
</style>
